.class public Lcom/kwad/sdk/a/c/a;
.super Ljava/lang/Object;


# instance fields
.field private a:Lcom/kwad/sdk/core/response/model/AdTemplate;

.field private b:Lcom/kwad/sdk/core/view/b;

.field private c:Lcom/kwad/sdk/contentalliance/detail/video/a;

.field private d:Z

.field private e:Z

.field private f:Landroid/content/Context;

.field private g:Lcom/kwad/sdk/core/view/b$a;


# direct methods
.method public constructor <init>(Lcom/kwad/sdk/core/response/model/AdTemplate;Lcom/kwad/sdk/core/view/b;Lcom/kwad/sdk/contentalliance/detail/video/DetailVideoView;Lcom/kwad/sdk/api/KsAdVideoPlayConfig;)V
    .locals 1
    .param p1    # Lcom/kwad/sdk/core/response/model/AdTemplate;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Lcom/kwad/sdk/core/view/b;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p3    # Lcom/kwad/sdk/contentalliance/detail/video/DetailVideoView;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p4    # Lcom/kwad/sdk/api/KsAdVideoPlayConfig;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Lcom/kwad/sdk/a/c/a$2;

    invoke-direct {v0, p0}, Lcom/kwad/sdk/a/c/a$2;-><init>(Lcom/kwad/sdk/a/c/a;)V

    iput-object v0, p0, Lcom/kwad/sdk/a/c/a;->g:Lcom/kwad/sdk/core/view/b$a;

    iput-object p1, p0, Lcom/kwad/sdk/a/c/a;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    iput-object p2, p0, Lcom/kwad/sdk/a/c/a;->b:Lcom/kwad/sdk/core/view/b;

    const/4 p1, 0x1

    const/4 p2, 0x0

    if-eqz p4, :cond_0

    invoke-interface {p4}, Lcom/kwad/sdk/api/KsAdVideoPlayConfig;->isVideoSoundEnable()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    iput-boolean v0, p0, Lcom/kwad/sdk/a/c/a;->d:Z

    if-eqz p4, :cond_1

    invoke-interface {p4}, Lcom/kwad/sdk/api/KsAdVideoPlayConfig;->isDataFlowAutoStart()Z

    move-result p4

    if-eqz p4, :cond_1

    goto :goto_1

    :cond_1
    const/4 p1, 0x0

    :goto_1
    iput-boolean p1, p0, Lcom/kwad/sdk/a/c/a;->e:Z

    invoke-virtual {p3}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object p1

    iput-object p1, p0, Lcom/kwad/sdk/a/c/a;->f:Landroid/content/Context;

    new-instance p1, Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-direct {p1, p3}, Lcom/kwad/sdk/contentalliance/detail/video/a;-><init>(Lcom/kwad/sdk/contentalliance/detail/video/DetailVideoView;)V

    iput-object p1, p0, Lcom/kwad/sdk/a/c/a;->c:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-direct {p0}, Lcom/kwad/sdk/a/c/a;->g()V

    iget-object p1, p0, Lcom/kwad/sdk/a/c/a;->c:Lcom/kwad/sdk/contentalliance/detail/video/a;

    new-instance p2, Lcom/kwad/sdk/a/c/a$1;

    invoke-direct {p2, p0}, Lcom/kwad/sdk/a/c/a$1;-><init>(Lcom/kwad/sdk/a/c/a;)V

    invoke-virtual {p1, p2}, Lcom/kwad/sdk/contentalliance/detail/video/a;->a(Lcom/kwad/sdk/core/i/a/c$e;)V

    return-void
.end method

.method private a(Z)V
    .locals 1

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/kwad/sdk/a/c/a;->c:Lcom/kwad/sdk/contentalliance/detail/video/a;

    const/high16 v0, 0x3f800000    # 1.0f

    goto :goto_0

    :cond_0
    iget-object p1, p0, Lcom/kwad/sdk/a/c/a;->c:Lcom/kwad/sdk/contentalliance/detail/video/a;

    const/4 v0, 0x0

    :goto_0
    invoke-virtual {p1, v0, v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->a(FF)V

    return-void
.end method

.method static synthetic a(Lcom/kwad/sdk/a/c/a;)Z
    .locals 0

    invoke-direct {p0}, Lcom/kwad/sdk/a/c/a;->h()Z

    move-result p0

    return p0
.end method

.method static synthetic b(Lcom/kwad/sdk/a/c/a;)Lcom/kwad/sdk/core/view/b;
    .locals 0

    iget-object p0, p0, Lcom/kwad/sdk/a/c/a;->b:Lcom/kwad/sdk/core/view/b;

    return-object p0
.end method

.method static synthetic c(Lcom/kwad/sdk/a/c/a;)Lcom/kwad/sdk/contentalliance/detail/video/a;
    .locals 0

    iget-object p0, p0, Lcom/kwad/sdk/a/c/a;->c:Lcom/kwad/sdk/contentalliance/detail/video/a;

    return-object p0
.end method

.method private g()V
    .locals 2

    new-instance v0, Lcom/kwad/sdk/contentalliance/detail/video/b$a;

    invoke-direct {v0}, Lcom/kwad/sdk/contentalliance/detail/video/b$a;-><init>()V

    iget-object v1, p0, Lcom/kwad/sdk/a/c/a;->a:Lcom/kwad/sdk/core/response/model/AdTemplate;

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/contentalliance/detail/video/b$a;->a(Lcom/kwad/sdk/core/response/model/AdTemplate;)Lcom/kwad/sdk/contentalliance/detail/video/b$a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/b$a;->a()Lcom/kwad/sdk/contentalliance/detail/video/b;

    move-result-object v0

    iget-object v1, p0, Lcom/kwad/sdk/a/c/a;->c:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v1, v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->a(Lcom/kwad/sdk/contentalliance/detail/video/b;)V

    iget-boolean v0, p0, Lcom/kwad/sdk/a/c/a;->d:Z

    invoke-direct {p0, v0}, Lcom/kwad/sdk/a/c/a;->a(Z)V

    iget-object v0, p0, Lcom/kwad/sdk/a/c/a;->c:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->d()V

    return-void
.end method

.method private h()Z
    .locals 1

    iget-boolean v0, p0, Lcom/kwad/sdk/a/c/a;->e:Z

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/kwad/sdk/a/c/a;->f:Landroid/content/Context;

    invoke-static {v0}, Lcom/ksad/download/d/b;->b(Landroid/content/Context;)Z

    move-result v0

    iput-boolean v0, p0, Lcom/kwad/sdk/a/c/a;->e:Z

    :cond_0
    iget-boolean v0, p0, Lcom/kwad/sdk/a/c/a;->e:Z

    return v0
.end method


# virtual methods
.method public a()V
    .locals 2

    iget-object v0, p0, Lcom/kwad/sdk/a/c/a;->c:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->a()Lcom/kwad/sdk/core/i/a/c;

    move-result-object v0

    if-nez v0, :cond_0

    invoke-direct {p0}, Lcom/kwad/sdk/a/c/a;->g()V

    :cond_0
    invoke-direct {p0}, Lcom/kwad/sdk/a/c/a;->h()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/kwad/sdk/a/c/a;->b:Lcom/kwad/sdk/core/view/b;

    invoke-virtual {v0}, Lcom/kwad/sdk/core/view/b;->d()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/kwad/sdk/a/c/a;->c:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->e()V

    :cond_1
    iget-object v0, p0, Lcom/kwad/sdk/a/c/a;->b:Lcom/kwad/sdk/core/view/b;

    iget-object v1, p0, Lcom/kwad/sdk/a/c/a;->g:Lcom/kwad/sdk/core/view/b$a;

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/core/view/b;->a(Lcom/kwad/sdk/core/view/b$a;)V

    return-void
.end method

.method public a(Lcom/kwad/sdk/contentalliance/detail/video/c;)V
    .locals 1
    .annotation build Landroidx/annotation/MainThread;
    .end annotation

    if-nez p1, :cond_0

    return-void

    :cond_0
    iget-object v0, p0, Lcom/kwad/sdk/a/c/a;->c:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0, p1}, Lcom/kwad/sdk/contentalliance/detail/video/a;->a(Lcom/kwad/sdk/contentalliance/detail/video/c;)V

    return-void
.end method

.method public b()V
    .locals 2

    iget-object v0, p0, Lcom/kwad/sdk/a/c/a;->b:Lcom/kwad/sdk/core/view/b;

    iget-object v1, p0, Lcom/kwad/sdk/a/c/a;->g:Lcom/kwad/sdk/core/view/b$a;

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/core/view/b;->b(Lcom/kwad/sdk/core/view/b$a;)V

    iget-object v0, p0, Lcom/kwad/sdk/a/c/a;->c:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->h()V

    return-void
.end method

.method public b(Lcom/kwad/sdk/contentalliance/detail/video/c;)V
    .locals 1
    .annotation build Landroidx/annotation/MainThread;
    .end annotation

    if-nez p1, :cond_0

    return-void

    :cond_0
    iget-object v0, p0, Lcom/kwad/sdk/a/c/a;->c:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0, p1}, Lcom/kwad/sdk/contentalliance/detail/video/a;->b(Lcom/kwad/sdk/contentalliance/detail/video/c;)V

    return-void
.end method

.method public c()V
    .locals 1

    invoke-direct {p0}, Lcom/kwad/sdk/a/c/a;->h()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    :cond_0
    iget-object v0, p0, Lcom/kwad/sdk/a/c/a;->c:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->f()V

    return-void
.end method

.method public d()V
    .locals 1

    iget-object v0, p0, Lcom/kwad/sdk/a/c/a;->c:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->g()V

    return-void
.end method

.method public e()V
    .locals 1
    .annotation build Landroidx/annotation/MainThread;
    .end annotation

    iget-object v0, p0, Lcom/kwad/sdk/a/c/a;->c:Lcom/kwad/sdk/contentalliance/detail/video/a;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->m()V

    iget-object v0, p0, Lcom/kwad/sdk/a/c/a;->c:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->h()V

    :cond_0
    return-void
.end method

.method public f()V
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/kwad/sdk/a/c/a;->e:Z

    iget-object v0, p0, Lcom/kwad/sdk/a/c/a;->b:Lcom/kwad/sdk/core/view/b;

    invoke-virtual {v0}, Lcom/kwad/sdk/core/view/b;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/kwad/sdk/a/c/a;->c:Lcom/kwad/sdk/contentalliance/detail/video/a;

    invoke-virtual {v0}, Lcom/kwad/sdk/contentalliance/detail/video/a;->e()V

    :cond_0
    return-void
.end method
